<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="10" />
    <title>历史记录</title>
    <link rel="stylesheet" href="/Public/Home/css/reward.css">
    <!--不识别数字为手机-->
<meta name="format-detection" content="telephone=no, email=no"/>
<!--通用js-->
<?php if(isset($signPackage) && !empty($signPackage)){ ?>
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js?v=201704270010"></script>
<?php } ?>
<script type="text/javascript" src="/Public/Home/js/require.js"></script>
<script type="text/javascript" src="/Public/Home/js/baseLoading.js?v=201705240001"></script>
<script src="/Public/Home/js/jquery.min.js" ></script>
<script src="/Public/Home/js/pincode-input.js" ></script>
<script src="/Public/Home/js/parabola.js" ></script>
<script src="/Public/Home/js/lazyload/jquery.lazyload.min.js"></script>
<script type="text/javascript">
    _global.isLogin = !!"<?php echo $wx_member_id; ?>";
	var isWxShareDiy = typeof yc_share_diy === "undefined" ? false : yc_share_diy;
	var yc_wx_shareImgPath = "";
	<?php if(isset($weixin_logo) && !empty($weixin_logo)){ ?>
		yc_wx_shareImgPath = "/Uploads/<?php echo ($weixin_logo["image"]); ?>";
	<?php } ?>
    var yc_pass_arr = {'local_id':"<?php echo I('local_id',1);?>",'top_local_id':"<?php echo I('top_local_id',1);?>"};
	if(parseInt(yc_pass_arr["local_id"]) == 21){
		_global.isStopSell = true;
	}
    <?php if(isset($signPackage) && !empty($signPackage)){ ?>
        _global.isWeiXinLoad = true;
        var isEnableLocation = typeof yc_wx_location === "undefined" ? false : yc_wx_location;
        var yc_wx_options = {
            "enableLocation" : isEnableLocation,
            "refuseCallback" : function(){},
            "mapCallback" : function(){},
            "config" : {
                debug: false,
                appId: '<?php echo $signPackage["appId"];?>',
                timestamp: '<?php echo $signPackage["timestamp"];?>',
                nonceStr: '<?php echo $signPackage["nonceStr"];?>',
                signature: '<?php echo $signPackage["signature"];?>',
                jsApiList: [
                    'checkJsApi'
                ]
            }
        };
        var isInHeader = typeof yc_wx_useInHeader === "undefined" ? true : yc_wx_useInHeader;
        if(isInHeader){
            wxAutoConfig(yc_wx_options);
        }
    <?php } ?>
</script>
</head>
<body class="bg-white">
    <div class="reward-history-info">
        <div class="one-col">
            <span class="n"><?php echo ($bonusInfo["count_bonus"]); ?></span>
            <span class="t">累积获得奖金</span>
        </div>
        <div class="one-col">
            <span class="n"><?php echo ($bonusInfo["use_bonus"]); ?></span>
            <span class="t">已用奖金</span>
        </div>
        <span class="line"></span>
    </div>
    <div class="reward-history-operate">
        <span class="tit">奖金历史记录</span>
        <a id="ycRewardFilter" href="javascript:;" class="filter">筛选<i></i></a>
        <div id="ycRewardDrops" class="drop-chs">
            <a href="javascript:;" class="on" data-type="all">全部</a>
            <a href="javascript:;" data-type="use">只看使用</a>
            <a href="javascript:;" data-type="get">只看获得</a>
        </div>
    </div>
    <div id="ajax-reward-list" class="user-reward-list" style="padding:0 0.50rem 0.20rem 0.50rem;">

    </div>
    <script type="text/javascript">
        /*all:全部 get:只看使用 use:只看获得*/
        var _rtype = "all";
        var _isInHistory = true;
		require(['member/reward']);        
	</script>
</body>
</html>